<include file="Public/header" />
<style>
.shop_sort .shop_sort_title{width:10%;}
.pic_container{float:left;width:88%;}
.pic_wrapper{float:left;width:110px;height:110px;position:relative;}
.pic_wrapper img{margin:10px 10px 10px 0;max-width:100px;max-height:100px;z-index:1;}
.pic_wrapper div{display:none;position:absolute;top:10px;width: 100px;height: 100px;color: #fff;background: rgba(0,0,0,0.6);line-height:100px;vertical-align: middle;text-align: center;font-size:18px;cursor:pointer;}
.shop_sort_text{border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset}
</style>
        <div class="comm-top">
            <h4 style="margin-bottom:0">订单信息</h4>
            <div class="add_page_top"></div>
        </div>
      
            <div class="shop_sort_box">
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>订单号:</h4></div>
                    <div class="shop_sort_set">
                       <input class="shop_sort_text" value="{$item.order_sn}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>下单时间:</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" value="{$item.create_time}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset"  disabled/>
                    </div>
                </div>
               <div class="shop_sort">
                    <div class="shop_sort_title"><h4>状态：</h4></div>
                    <div class="shop_sort_set">
                        <if condition="$item.status eq 1">未付款 <elseif condition="$item.status eq 2"/> 待发货 &nsp;
						<span  onclick="fahuo('{$item.id}')">发货</span><elseif condition="$item.status eq 3"/>待收货 <elseif condition="$item.status eq 3"/>已完成 &nbsp; <a href="{:U('Order/logistics',array('order_id'=>$item['id']))}">查看物流</a></if>
                    </div>
                </div>
               <div class="shop_sort">
                    <div class="shop_sort_title"><h4>下单人：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.contact_user|default=''}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>下单手机：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.contact_phone|default=''}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                <hr>
                <if condition="($item.status eq 3) or ($item.status eq 4)">
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>发货时间：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.send_time|default=''}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>快递：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.logistics_company|default=''}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                        <if condition="$item.status eq 3">
                            <a href="{:U('Order/logistics',array('order_id'=>$item['id']))}">查看物流</a>
                            <span  onclick="fahuo('{$item.id}')">更换物流</span>
                        <elseif condition="$item.status eq 4" />
                            <a href="{:U('Order/logistics',array('order_id'=>$item['id']))}">查看物流</a>
                        </if>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>单号：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.logistics_number|default=''}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                </if>
                 <div class="shop_sort">
                    <div class="shop_sort_title"><h4>收货人：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.contact_user|default=''}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                 <div class="shop_sort">
                    <div class="shop_sort_title"><h4>收货手机：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.contact_phone|default=''}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                 <div class="shop_sort">
                    <div class="shop_sort_title"><h4>收货地址：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.contact_area}{$item.contact_address}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
        <div class="comm-top">
            <h4 style="margin-bottom:0">商品信息</h4>
            <div class="add_page_top"></div>
        </div>

               <div class="shop_sort">
                    <div class="shop_sort_title"><h4>商品名称：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.goods_name}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>商品图片：</h4></div>
                    <div class="shop_sort_set">
                      <img src="{$item.goods_pic}" style="width:100px;height:100px;"/>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>单价：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.goods_price}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>

                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>颜色：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.goods_spec}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>数量：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.order_num}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>总额：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.order_price}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>已选服务：</h4></div>
                    <div class="shop_sort_set">
                      <if condition="$item.service eq 1">普通订单 <elseif condition="$item.service eq 2"/> VIP<elseif condition="$item.service eq 3"/>按天付</if>
                    </div>
                </div>
                <if condition="$item.service eq 2">
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>车身铭刻：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[store]" value="{$item.vip_note}" type="text" style="border-style:none;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.075) inset" disabled />
                    </div>
                </div>
                </if>
                <if condition="$item.service eq 3">
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>付款信息：</h4></div>
                    <div class="shop_sort_set">
                       首付金额:{$item.order_price-$item.deposit} &nbsp; 每天还款{$item.per_cash}总还款天数{$item.per_days} 押金 {$item.deposit}
                    </div>
                </div>
                </if>
            </div>
<include file="Public/dialog" />
<script type="text/javascript">
function fahuo(id){
    $.post('{:U("send_goods")}',{id:id},function(data){
        dialog(data,'在线发货',function(e){
            var obj = e.target;
            var gs = $('#gs').val();
        
            if(gs ==''){
            layer.msg('请把信息填写完整!');
            return false;
            }
            $.post('{:U("do_send_goods")}',$('#dataForm').serializeArray(),function(data){
                  layer.msg(data.info),time(1000);
                    // setTimeout(function(){
                    //     layer.closeAll();
                    // },1000);
                    location.reload();
            });
        })
    });
}

</script>
<include file="Public/footer"/>
